import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { ClientsModule, Transport } from '@nestjs/microservices';

@Module({
  imports: [
    ClientsModule.register([
      {
        name: 'TEST',
        transport: Transport.GRPC,
        options: {
            url:'localhost:3000',
            package: 'TEST',
            protoPath: './proto/TestService.proto',
        },
    },
    ])
  ],
  controllers: [AppController],
  providers: [],
})
export class AppModule {}
